<!DOCTYPE html>
<html lang="en" style="height: 100%;">
<head>
    <meta charset="UTF-8">
    <title>列表认养产品</title>
    <style>
        .hander_zx{font-size:18px}.conten{background:#fff;margin-top:10px}.conten ul{overflow:hidden;padding:0;margin:0;border-bottom:1px solid #e5e5e5}.conten_floet li{float:left;list-style:none;line-height:45px;text-align:center;width:100px;cursor:pointer;color:#212121;padding:0 10px;}.active{color:#14d882!important;border-bottom:3px solid #14d882}.push_fx li{float:left;font-size:14px;list-style:none;width:10%;text-align:center;background:#f8f8f8;line-height:45px;color:#1f1f1f}.lick_push li{float:left;font-size:14px;width:10%;text-align:center;line-height:45px;list-style:none;color:#616161}.lick_push li:last-child{color:#14d882!important}.lick_push li:last-child span:nth-child(1){margin-right:5px}.lick_push li:last-child span{cursor:pointer}
    </style>
    <link rel="stylesheet" href="../css/paging.css">
    <link rel="stylesheet" href="../css/finacnce.css">
    <style>
        .tab_wont ul li:nth-child(1){
            width:7%;
        }
        .tab_wont ul li:nth-child(2){
            width:6%;
        }
        .tab_wont ul li:nth-child(3){
            width:8%;
        }
        .trial_founs{
            cursor: pointer;
        }
    </style>
</head>
<body style="height:100%;overflow-x: hidden">
<!--//hander-->
<div class="hander_zx" style="padding: 5px 0 0 10px;">财务报表</div>
<!--内容-->
<div class="conten">
    <ul class="conten_floet">
        <li class="active product">到期产品初审</li>
    </ul>
    <!--搜索拦-->
    <div class="input_corder">
        <div style="padding-bottom: 10px;">
            <div class="pink_wo">
                <span>选择类型：</span>
                <div class="get_type">
                    期数
                </div>
                <div>
                    <img src="../cw_img/cw_img2.png" alt="" class="wp_img_ws">
                </div>
            </div>
            <div class="pink_wo" style="margin-left: 15px;">
                <div></div>
                <div>
                    <input type="text" style="width: 100%;height:100%;border:none;text-align: center" id="qs_ifon">
                </div>
                <div>
                    <img src="../cw_img/cw_img3.png" alt="" style="width: 15px;">
                </div>
            </div>
            <button class="dc_btn preliminary_ch">查询</button>
            <button class="dc_btn" id="export_up" style="margin-left: 15px;">导出</button>
        </div>
    </div>
    <!--数据列表-->
    <div class="tab_wont">
        <ul style="background: #F8F8F8">
            <li>期数</li>
            <li>认养人</li>
            <li>我的资产</li>
            <li>认养数量</li>
            <li>单位</li>
            <li>认养周期</li>
            <li>年化率</li>
            <li>认养资金</li>
            <li>认养收益</li>
            <li>认养日</li>
            <li>收益日</li>
            <li>已消费</li>
            <li>到期余额</li>
            <li>操作</li>
        </ul>
        <div class="bg_data">
        </div>
    </div>
    <!--分页div-->
    <div class="box" id="box" style="display:block;"></div>
</div>
</body>
<script src="https://cdn.bootcss.com/jquery/2.1.1-rc2/jquery.min.js"></script>
<script src="../js/paging.min.js"></script>
<script>
    "use strict";$(function(){var qs_ifon=void 0;$(".preliminary_ch").on('click',function(){qs_ifon=$("#qs_ifon").val();typeof qs_ifon=="string"&&qs_ifon==""?qs_ifon=null:qs_ifon;new_function(qs_ifon)});function new_function(a){$.ajax({type:'post',url:'/getEndOrderList',dataType:'json',contentType:"application/json",data:JSON.stringify({currentPage:1,pageCount:24,code:a}),success:function success(data){_newpage(data.total,a)}})}new_function(null);function _newpage(e,n){if(typeof e==='number'&&e>0){$("#box").css("display","block")}else{$("#box").css("display","none")}var total=Math.ceil(e/24);$('#box').paging({initPageNo:1,totalPages:total,totalCount:'合计'+e+'条数据',slideSpeed:600,jump:true,callback:function callback(page){$.ajax({type:'post',url:'/getEndOrderList',dataType:'json',contentType:"application/json",data:JSON.stringify({currentPage:page,pageCount:24,code:n}),success:function success(data){var _wp_ter=data.endOrderList;var html='';for(var i=0;i<_wp_ter.length;i++){html+="\n                                <ul>\n                                    <li>"+_wp_ter[i].code_p+"\u671F</li>\n                                    <li>"+_wp_ter[i].username+"</li>\n                                    <li>"+_wp_ter[i].total_money+"</li>\n                                    <li>"+_wp_ter[i].amount+"</li>\n                                    <li>"+_wp_ter[i].unit+"/"+_wp_ter[i].type+"</li>\n                                    <li>"+_wp_ter[i].time_limit+"\u4E2A\u6708</li>\n                                    <li>"+_wp_ter[i].return_rate+"%</li>\n                                    <li>"+_wp_ter[i].order_money+"</li>\n                                    <li>"+_wp_ter[i].income+"</li>\n                                    <li>"+_wp_ter[i].start_time+"</li>\n                                    <li>"+_wp_ter[i].end_time+"</li>\n                                    <li>"+_wp_ter[i].cost+"</li>\n                                    <li>"+(_wp_ter[i].income+_wp_ter[i].order_money-_wp_ter[i].cost)+"</li>\n                                    <li class=\"trial_founs\" data-ted=\""+(_wp_ter[i].income+_wp_ter[i].order_money-_wp_ter[i].cost)+"\" data-code-ifon=\""+_wp_ter[i].code+"\">\u521D\u5BA1</li>\n                                </ul>\n\n                               "}$(".bg_data").html(html)}})}})}$("#export_up").on('click',function(){window.open("http://wx.umubao.com/expwithdraw")});var moeny_op;var code_ifon;$(".bg_data").on("click",".trial_founs",function(){$('#_Thetrial',window.parent.document).css("display","block");moeny_op=$(this).attr("data-ted");$('.Expire_wp',window.parent.document).text(moeny_op);$('#funds',window.parent.document).val(moeny_op);code_ifon=$(this).attr("data-code-ifon")});$('.input_fundes_ok',window.parent.document).on('click',function(){$.ajax({type:'post',url:'/chushen',dataType:'json',contentType:"application/json",data:JSON.stringify({code:code_ifon}),success:function success(data){if(data.code=="00"){alert("操作成功");location.reload();$('#_Thetrial',window.parent.document).css("display","none");return}if(data.code!="00"){alert(data.data);return}}})})});
</script>
</html>